import ajax from '@/api/apiConfig.js'

// 删除
export const delDevice = data => {
  return ajax.get('scanCode/delDevice', data)
}

// 小类明细
export const getDeviceCategoryInfo = data => {
  return ajax.get('scanCode/getDeviceCategoryInfo', data)
}

// 保存
export const saveUpSmoke = data => {
  return ajax.post('scanCode/saveUpSmoke', data)
}

// 列表
export const getInsertList = data => {
  return ajax.get('scanCode/getInsertList', data)
}

// 大类列表
export const getDeviceCategoryList = data => {
  return ajax.get('scanCode/getDeviceCategoryList', data)
}

// 视频列表
export const getVideoList = data => {
  return ajax.get('video/getVideoStatus', data)
}

// 数据上传信息
export const getNewUploadInfo = data => {
  return ajax.get('scanCode/getNewUploadInfo', data)
}

// 详情
export const getFcfDetailInfo = data => {
  return ajax.get('scanCode/getFcfDetailInfo', data)
}

// 校验设备编码
export const checkDeviceIdInfo = data => {
  return ajax.get('scanCode/checkDeviceIdInfo', data)
}

// 保存传输装置
export const insertUpCommunicate = data => {
  return ajax.post('scanCode/insertUpCommunicate', data)
}

// 获取传输装置在离线信息
export const getUitdOnlineInfo = data => {
  return ajax.get('scanCode/getUitdOnlineInfo', data)
}

// 获取传输装置最新数据信息
export const getUitdData = data => {
  return ajax.get('scanCode/getUitdData', data)
}

// 获取水浸报警信息
export const getSjUploadInfo = data => {
  return ajax.get('scanCode/getSjUploadInfo', data)
}
// 获取传输装置详细息
export const getUitbDetailInfo = data => {
  return ajax.get('scanCode/getUitbDetailInfo', data)
}

// 获取传输装置最近10条数据
export const getUitbRecord = data => {
  return ajax.get('scanCode/getUitbRecord', data)
}

// 系统类型
export const getFcsCategoryList = data => {
  return ajax.get('alertStat/getFcsCategoryList', data)
}

// 获取消防设施类别
export const getFireCtlCategoryList = data => {
  return ajax.get('fcf/getFireCtlCategoryList', data)
}

/* 获取指定消防设施类别的信息 含子类别信息 */
export const getFcfCInfo = (data) => {
  return ajax.get('fcf/getFcfCInfo', data)
}

/* 获取指定消防设施类别的属性数据 */
export const getAssignFcfP = (data) => {
  return ajax.get('fcf/getAssignFcfP', data)
}

/* 获取消防设施类别属性记录信息 */
export const getFcfCPVal = (data) => {
  return ajax.get('fcf/getFcfCPVal', data)
}

export const getFcfSelectList = (data) => {
  return ajax.get('fcf/getFcfSelectList', data)
}
